package com.ryskoo.framework.core.bean;

import java.io.Serializable;

/**
 * 
 * DTO:(data transfer object)数据传输对象
 * 
 * @author ruiyun
 *
 *         ReturnMessageDTO对服务间调用返回的信息进行包装
 */
public class ReturnMessageDTO<T> implements Serializable {

	/* 返回状态码 */
	private int returnCode = ReturnCodeEnum.SUCCESS.getReturnCode();

	/* 返回状态说明 */
	private String returnNote;

	/* 返回的业务数据封装成json */
	private T returnMessage;

	/* 返回的分页数据 */
	private Pager pager;

	public int getReturnCode() {
		return returnCode;
	}

	public void setReturnCode(int returnCode) {
		this.returnCode = returnCode;
	}

	public String getReturnNote() {
		return returnNote;
	}

	public void setReturnNote(String returnNote) {
		this.returnNote = returnNote;
	}

	public T getReturnMessage() {
		return returnMessage;
	}

	public void setReturnMessage(T returnMessage) {
		this.returnMessage = returnMessage;
	}

	public Pager getPager() {
		return pager;
	}

	public void setPager(Pager pager) {
		this.pager = pager;
	}
}
